import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'
// 自定义表单分页查询
export const getCustomerFormPageList = params => {
	// axios.prototype._loading_ = false
	return axios
		.post(
			resfulParamsToUrl('/sys/auth/syscustomerform/pageList', params),
			params,
		)
		.catch(() => {})
}
// 自定义表单编辑回显
export const getCustomerFormJson = params => {
	// axios.prototype._loading_ = false
	axios.prototype._show_error_ = false
	return axios.post(
		resfulParamsToUrl('/sys/auth/syscustomerform/getFormJson', params),
		params,
	)
}
// 自定义表单新增
export const customerFormInset = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/syscustomerform/insert', params), params)
		.catch(() => {})
}
// 自定义表单编辑1
export const tCustomerFormJsonUpdate = params => {
	return axios
		.post(
			resfulParamsToUrl('/sys/auth/tCustomerFormJson/update', params),
			params,
		)
		.catch(() => {})
}
// 自定义表单编辑2
export const customerFormUpdate = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/syscustomerform/update', params), params)
		.catch(() => {})
}
// 自定义表单删除(可批量)
export const customerFormDeletes = params => {
	return axios
		.post(
			resfulParamsToUrl('/sys/auth/syscustomerform/deleteByids', params),
			params,
		)
		.catch(() => {})
}
// 查询表单实体
export const syscustomerformGetModel = params => {
	return axios
		.post(
			resfulParamsToUrl('/sys/auth/syscustomerform/getModel', params),
			params,
		)
		.catch(() => {})
}
